package com.yunyi.dm.singleton;

/**
 * 懒汉式
 * 线程不安全，不推荐使用
 *
 * @author yunyi
 */
public class LazyMode01 {

    private static LazyMode01 instance;

    public static LazyMode01 getInstance() {
        if (instance == null) {
            instance = new LazyMode01();
        }
        return instance;
    }

    private LazyMode01() {
    }
}
